﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
namespace Clipper.Model.DataBaseModel
{
    public class CupDetectResultInformation : AbstractModel
    {
        int id;//编号
        int cupHoleNum;//孔位号
        int sampleInfoID;//样本号
        DateTime? detectTime;//检测结束时间
        string detectItem;//检测项
        string detectResult;//检测结果
                            //  ReactionCup detectResultList=new ReactionCup();//检测结果
        double activity; //活性


        public int CupHoleNum
        {
            get
            {
                return cupHoleNum;
            }

            set
            {
                cupHoleNum = value;
                NotifyPropertyChanged("CupHoleNum");
            }
        }

        public int SampleInfoID
        {
            get
            {
                return sampleInfoID;
            }

            set
            {
                sampleInfoID = value;
                NotifyPropertyChanged("SampleInfoID");
            }
        }



        public string DetectItem
        {
            get
            {
                return detectItem;
            }

            set
            {
                detectItem = value;
                NotifyPropertyChanged("DetectItem");
            }
        }

        public string DetectResult
        {
            get
            {
                return detectResult;
            }

            set
            {
                detectResult = value;
                NotifyPropertyChanged("DetectResult");
            }
        }
        private ObservableCollection<int> detectResultList = new ObservableCollection<int>();
        public ObservableCollection<int> DetectResultList
        {
            get
            {
                return detectResultList;
            }

            set
            {
                detectResultList = value;
                NotifyPropertyChanged("detectResultList");
            }
        }
        //检测时间集合
        private ObservableCollection<int> detectresultTimelist = new ObservableCollection<int>();
        public ObservableCollection<int> DetectresultTimelist
        {
            get
            {
                return detectresultTimelist;
            }

            set
            {
                detectresultTimelist = value;
                NotifyPropertyChanged("DetectresultTimelist");
            }
        }
        //public ReactionCup detectResultList
        //{
        //    get
        //    {
        //        return detectResultList;
        //    }

        //    set
        //    {
        //        detectResultList = value;
        //        NotifyPropertyChanged("detectResultList");
        //    }
        //}

        public DateTime? DetectTime
        {
            get
            {
                return detectTime;
            }

            set
            {
                detectTime = value;
                NotifyPropertyChanged("DetectTime");
            }
        }

        public int Id
        {
            get
            {
                return id;
            }

            set
            {
                id = value;
                NotifyPropertyChanged("Id");
            }
        }

        public double Activity
        {
            get
            {
                return activity;
            }

            set
            {
                activity = value;
                NotifyPropertyChanged("Activity");
            }
        }

        

        private bool changeFlag = true;
        public bool ChangeFlag
        {
            get
            {
                return changeFlag;
            }

            set
            {
                changeFlag = value;
            }
        }
    }
}
